package myproject.CarRentalSystem;

public class Customer {
    private String name;
    private String phone;
    private int day;//租车天数
    private String plate;

    public Customer() {
    }

    public Customer(String name, String phone, String plate, int day) {
        this.name = name;
        this.phone = phone;
        this.plate = plate;
        this.day = day;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    @Override
    public String toString() {
        return "租车人：" + name +
                ",手机号：" + phone +
                ",车牌号：" + plate +
                ",天数：" + day + "天";
    }
}
